﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="GlYh.aspx.cs" Inherits="BookS.GlYh" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <link href="bootstrap-3.3.7/dist/css/bootstrap.css" rel="stylesheet"/>
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
         <div class="success">
        用户姓名：<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
        用户手机号：<asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
        用户账号状态<asp:RadioButtonList ID="RadioButtonList1" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
            <asp:ListItem Value="1">启用</asp:ListItem>
            <asp:ListItem Value="2">封锁</asp:ListItem>
            <asp:ListItem Selected="True" Value="0">全部</asp:ListItem>
        </asp:RadioButtonList>
        <asp:Button ID="Button1" runat="server" Text="查询"  />
        <asp:Button ID="Button2" runat="server" Text="添加" />
    <br />
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" BackColor="White" BorderColor="White" BorderStyle="Ridge" BorderWidth="2px" CellPadding="3" CellSpacing="1" GridLines="None">
            <Columns>
                <asp:BoundField DataField="BookType" HeaderText="用户账号" />
                  <asp:BoundField DataField="BookType1" HeaderText="用户密码" />
                 <asp:BoundField DataField="BookState" HeaderText="用户账号状态" />
                <asp:BoundField DataField="BookName" HeaderText="用户姓名" />
                 <asp:BoundField DataField="BookSex" HeaderText="用户性别" />
                <asp:BoundField DataField="BookAge" HeaderText="用户年龄" />
                 <asp:BoundField DataField="BookPhone" HeaderText="用户手机号" />
                 <asp:BoundField DataField="BookEmail" HeaderText="用户Email" />
                <asp:BoundField DataField="Address" HeaderText="收货地址" />
               
                <asp:TemplateField HeaderText="操作">
                    <ItemTemplate>
                        <asp:Button ID="Button3" runat="server" Text="借出" CommandArgument='<%#Eval("BookID") %>' CommandName="safasf"  Visible='<%#Eval("BookState").ToString()=="未借出" %>' />
                        <asp:Button ID="Button4" runat="server" Text="删除"  CommandArgument='<%#Eval("BookID") %>' CommandName="safasf" OnClientClick="return confirm('你确定要删除吗？')" />
                     <asp:Button ID="Button5" runat="server" Text="修改"  CommandArgument='<%#Eval("BookID") %>' CommandName="safasf" OnClientClick="return confirm('你确定要修改吗？')"/>
                   
                        </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
            <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#E7E7FF" />
            <PagerStyle BackColor="#C6C3C6" ForeColor="Black" HorizontalAlign="Right" />
            <RowStyle BackColor="#DEDFDE" ForeColor="Black" />
            <SelectedRowStyle BackColor="#9471DE" Font-Bold="True" ForeColor="White" />
            <SortedAscendingCellStyle BackColor="#F1F1F1" />
            <SortedAscendingHeaderStyle BackColor="#594B9C" />
            <SortedDescendingCellStyle BackColor="#CAC9C9" />
            <SortedDescendingHeaderStyle BackColor="#33276A" />
        </asp:GridView>
    </div>
    </form>
    <script src="js/jquery-3.4.1.min.js"></script>
    <script src="bootstrap-3.3.7/dist/js/bootstrap.js"></script>
</body>
</html>
